<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ page import="com.yaodian100.ec.member.entity.Member"%>
<%@ page import="org.apache.commons.lang.StringUtils"%>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.yaodian100.com/jsp/yaodian100" prefix="yaodian100" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<c-rt:set var="frontContextPath" value='<%=ServerValue.getFrontContextPath()%>' />
<%Member member = (Member)request.getAttribute("member");%>

<div class="content mb-drawmoney mb-giftcard">
<!-- 我的訂單 -->
<h2>我的礼品卡</h2>
<!-- 帳戶狀況 -->
<div class="my-giftcard c-f"><span><strong>礼品卡余额：</strong><br />
<b id="showAmount"><fmt:formatNumber value="${member.balance.giftcardBalance}" pattern="#####0.0#"/></b>元</span></div>

<div class="mb-show">
<ul class="mb-tab">
	<li id="list_li" class="mb-tab-f"><a href="#" onclick="doAR('<%=ServerValue.getFrontContextPath()%>/member/myGiftcard/giftcardList.do?AJAX=true&refreshZone=tab','tab')">礼品卡交易记录</a></li>
	<li id="recharge_li"><a href="#" onclick="doAR('<%=ServerValue.getFrontContextPath()%>/member/myGiftcard/rechargeAdd.do?AJAX=true&refreshZone=tab','tab')">礼品卡充值</a></li>
</ul>

<div id="tab">
	<tiles:insertAttribute name="displayGiftcardList" ignore="true" />
</div>

<!-- 注意事项 -->
<div class="txt-note">
	<ul>
		<li><strong>我的耀点礼品卡温馨提示：</strong></li>
		<li>．请保证您的礼品卡在有效期内使用，过期即作废。</li>
		<li>．礼品卡不记名，不退卡，不挂失，不可兑换现金。</li>
		<li>．更多礼品卡使用规则，可参考<a href="/help/12_use_cards.html#usage" target="_blank">礼品卡使用说明</a>。</li>
		<li>．如遇礼品卡使用问题，可直接与耀点客户服务中心联系，我们会竭诚为您服务。</li>
	</ul>
</div>
</div>
</div>